import { defineStore } from 'pinia'
import { IDocumentProps } from './types'

const useDocStore = defineStore('document', {
  state: (): IDocumentProps[] => {
    return [
      {
        api: '',
        method: '',
        resourceName: '',
        deprecated: false,
        consumes: [],
        operationId: '',
        parameters: [],
        produces: [],
        responses: [],
        summary: '',
        tags: []
      }
    ]
  },
  persist: true,
  actions: {}
})

export default useDocStore
